import { S } from '../../s';
import { IPSChartCoordinateSystemParallel } from './ipschart-coordinate-system-parallel';
import { IPSChartParallel } from './ipschart-parallel';
import { PSDEChartCoordinateSystemImplBase } from './psdechart-coordinate-system-impl-base';

export class PSDEChartCoordinateSystemParallelImpl
  extends PSDEChartCoordinateSystemImplBase
  implements IPSChartCoordinateSystemParallel
{
  protected pschartparallel: IPSChartParallel;
  getPSChartParallel(): IPSChartParallel | null {
    return (
      this.pschartparallel ||
      (this.pschartparallel = this.fillObjectModel(
        S._100,
        this.M.getPSChartParallel,
        S._2fc,
      ) as IPSChartParallel)
    );
  }
  get cls(): string {
    return 'PSDEChartCoordinateSystemParallelImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._ea) return true;
    return super.instanceof(cls);
  }
}
